//
// Created on 2025/7/22.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "AudioAsset.h"

AudioAsset::AudioAsset(const std::string& path) : 
    Asset(path, AssetType::ASSET_AUDIO)
{
}

void AudioAsset::SetIsLoop(bool loop)
{
    m_isLoop = loop;
}

void AudioAsset::SetIsMuted(bool muted)
{
    m_isMuted = muted;
}

void AudioAsset::SetVolume(int32_t volume)
{
    m_volume = volume;
}

bool AudioAsset::IsLoop()
{
    return m_isLoop;
}

bool AudioAsset::IsMuted()
{
    return m_isMuted;
}

int32_t AudioAsset::GetVolume()
{
    return m_volume;
}